import request from '@/utils/request'

/**
 *
 * 视频内容相关接口
 *
 */

export function getVideoList(params) {
  return request({
    url: '/videos',
    method: 'get',
    params
  })
}
export function getVideoDetail(id) {
  return request({
    url: `/videos/${id}`,
    method: 'get'
  })
}
export function delVideo(id) {
  return request({
    url: `/videos/${id}`,
    method: 'delete'
  })
}
export function changeVideoStatus(id, onShelve) {
  return request({
    url: `/video/${id}`,
    method: 'patch',
    data: { onShelve }
  })
}
